import http from '@/utils/request'

const apiBefore = '/web/marketing'

export const marktetReport = {
  // client-usage-report
  getClientUsageData: params => {
    return http.get(`${apiBefore}/client-Usage-report/loadAll`, { params })
  },
  findAb: params => {
    return http.get(`${apiBefore}/client-Usage-report/findAb`, { params })
  },
  findMr: params => {
    return http.get(`${apiBefore}/client-Usage-report/findMr`, { params })
  },
  findAt: params => {
    return http.get(`${apiBefore}/client-Usage-report/findAt`, { params })
  },
  findNt: params => {
    return http.get(`${apiBefore}/client-Usage-report/findNt`, { params })
  },
  // score-card-report
  getScoreCardData: params => {
    return http.get(`${apiBefore}/score-card/loadAll`, { params })
  },
  findNew: params => {
    return http.get(`${apiBefore}/score-card/findNew`, { params })
  },
  findActive: params => {
    return http.get(`${apiBefore}/score-card/findActive`, { params })
  },
  findWithCwKey: params => {
    return http.get(`${apiBefore}/score-card/findWithCwKey`, { params })
  },
  // bot-usage-report
  getBotUsageReport: params => {
    return http.get(`${apiBefore}/bot-usage-report/loadAll`, { params })
  },
  // Teams Non-Standard Command
  getTeamsNonStandardCommand: params => {
    return http.get(`${apiBefore}/teams-non-command/loadAll`, { params })
  }
}
